package com.chuangjiangx.member.score.dao.model;

import java.util.Date;

public class InMbrScoreGiftRecord {
    private Long id;

    private Long memberId;

    private Long memberScoreGiftRuleId;

    private Long merchantId;

    private Long storeId;

    private Long storeUserId;

    private Long merchantUserId;

    private Date createTime;

    private Date updateTime;

    private String claimCode;

    private Integer claimStatus;

    private Date claimTime;

    private Long mbrScoreStreamId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getMemberScoreGiftRuleId() {
        return memberScoreGiftRuleId;
    }

    public void setMemberScoreGiftRuleId(Long memberScoreGiftRuleId) {
        this.memberScoreGiftRuleId = memberScoreGiftRuleId;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    public Long getStoreUserId() {
        return storeUserId;
    }

    public void setStoreUserId(Long storeUserId) {
        this.storeUserId = storeUserId;
    }

    public Long getMerchantUserId() {
        return merchantUserId;
    }

    public void setMerchantUserId(Long merchantUserId) {
        this.merchantUserId = merchantUserId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getClaimCode() {
        return claimCode;
    }

    public void setClaimCode(String claimCode) {
        this.claimCode = claimCode == null ? null : claimCode.trim();
    }

    public Integer getClaimStatus() {
        return claimStatus;
    }

    public void setClaimStatus(Integer claimStatus) {
        this.claimStatus = claimStatus;
    }

    public Date getClaimTime() {
        return claimTime;
    }

    public void setClaimTime(Date claimTime) {
        this.claimTime = claimTime;
    }

    public Long getMbrScoreStreamId() {
        return mbrScoreStreamId;
    }

    public void setMbrScoreStreamId(Long mbrScoreStreamId) {
        this.mbrScoreStreamId = mbrScoreStreamId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", memberId=").append(memberId);
        sb.append(", memberScoreGiftRuleId=").append(memberScoreGiftRuleId);
        sb.append(", merchantId=").append(merchantId);
        sb.append(", storeId=").append(storeId);
        sb.append(", storeUserId=").append(storeUserId);
        sb.append(", merchantUserId=").append(merchantUserId);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", claimCode=").append(claimCode);
        sb.append(", claimStatus=").append(claimStatus);
        sb.append(", claimTime=").append(claimTime);
        sb.append(", mbrScoreStreamId=").append(mbrScoreStreamId);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InMbrScoreGiftRecord other = (InMbrScoreGiftRecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMemberId() == null ? other.getMemberId() == null : this.getMemberId().equals(other.getMemberId()))
            && (this.getMemberScoreGiftRuleId() == null ? other.getMemberScoreGiftRuleId() == null : this.getMemberScoreGiftRuleId().equals(other.getMemberScoreGiftRuleId()))
            && (this.getMerchantId() == null ? other.getMerchantId() == null : this.getMerchantId().equals(other.getMerchantId()))
            && (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId()))
            && (this.getStoreUserId() == null ? other.getStoreUserId() == null : this.getStoreUserId().equals(other.getStoreUserId()))
            && (this.getMerchantUserId() == null ? other.getMerchantUserId() == null : this.getMerchantUserId().equals(other.getMerchantUserId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getClaimCode() == null ? other.getClaimCode() == null : this.getClaimCode().equals(other.getClaimCode()))
            && (this.getClaimStatus() == null ? other.getClaimStatus() == null : this.getClaimStatus().equals(other.getClaimStatus()))
            && (this.getClaimTime() == null ? other.getClaimTime() == null : this.getClaimTime().equals(other.getClaimTime()))
            && (this.getMbrScoreStreamId() == null ? other.getMbrScoreStreamId() == null : this.getMbrScoreStreamId().equals(other.getMbrScoreStreamId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMemberId() == null) ? 0 : getMemberId().hashCode());
        result = prime * result + ((getMemberScoreGiftRuleId() == null) ? 0 : getMemberScoreGiftRuleId().hashCode());
        result = prime * result + ((getMerchantId() == null) ? 0 : getMerchantId().hashCode());
        result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode());
        result = prime * result + ((getStoreUserId() == null) ? 0 : getStoreUserId().hashCode());
        result = prime * result + ((getMerchantUserId() == null) ? 0 : getMerchantUserId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getClaimCode() == null) ? 0 : getClaimCode().hashCode());
        result = prime * result + ((getClaimStatus() == null) ? 0 : getClaimStatus().hashCode());
        result = prime * result + ((getClaimTime() == null) ? 0 : getClaimTime().hashCode());
        result = prime * result + ((getMbrScoreStreamId() == null) ? 0 : getMbrScoreStreamId().hashCode());
        return result;
    }
}